
module.exports = {
  "apps": {
    "name": "koa2-server",
    "script": "./src/app.js",
    "watch_delay": 5000,
    "watch": [
      "app.js"
    ],
    "ignore_watch": [
      "node_modules",
      "logs",
      "out.log"
    ],
    "instances": 1,
    "instance_var": "INSTANCE_ID",
    "increment_var": "PORT",
    exec_mode: "fork",
    "env": {
      "SERVER_PORT": 6000,
      "NODE_ENV": "production"
    },
    "out_file": "./logs/app-out.log",
    "error_file": "./logs/app-err.log",
    "log_date_format": "YYYY-MM-DD HH:mm:ss",
    "merge_logs": true
  }
}